home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 27
/
CU Amiga Magazine's Super CD-ROM 27 (1998)(EMAP Images)(GB)[!][issue 1998-10].iso
/
CUCD
/
Online
/
Iris
/
StoreMsg.irx
< prev
next >
Wrap
Text File
|
1998-07-30
|
1KB
|
77 lines
/* REXX script to transfer message(s) to the Store folder
$VER: StoreMsg.irx 1.2 (30.6.98) supplied with Iris V1.6
*/
/* address IRIS removed - now also usable from IRIS.n */
options results
options failat 11
'LOCKGUI'
signal on break_c
'GETNUMSELECTED'
n = result
if rc > 0 then do
'ASKCHOICE "Store message(s)" "This script needs at*Nleast V1.3 of Iris." "**_OK"'
signal break_c
end
else nop
if n = 0 then do
'ASKCHOICE "Store message(s)" "Select at least one*Nmessage first!" "**_OK"'
signal break_c
end
else nop
dest = "Store"
'GETFOLDER'
if result = dest then do
'ASKCHOICE "Store message(s)" "Impossible action:*NSame folder selected!" "**_OK"'
signal break_c
end
else nop
i = 0
err = ''
'GETNUMSELECTED'
n = result
if rc > 0 then do
'ASKCHOICE "Store message(s)" "This script needs at*Nleast V1.3 of Iris." "**_OK"'
signal break_c
end
else nop
if n = 0 then do
'ASKCHOICE "Store message(s)" "Did you click on the listview???" "**_OK"'
end
else nop
do i=0 to n-1
'MESSAGEFILE' i
msg = result
if rc > 0 then do
err = 'Did you click on the listview???'
leave i
end
else nop
'READMESSAGE "'||msg||'" 0 TO "'||dest||'"'
if rc > 0 then do
err = 'The READMESSAGE command failed.'
leave i
end
else nop
end
if err ~= '' then do
'ASKCHOICE "Store message(s)" "'||err||'" "**_OK"'
end
else do
'DELETE'
end
signal break_c
exit
break_c:
'UNLOCKGUI'
exit